package feignclients;

import cn.kz.hrm.util.AjaxResult;
import fallbackfactory.SystemFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(value = "system-server",fallbackFactory = SystemFeignClientFallbackFactory.class)
public interface SystemFeignClient {

    @RequestMapping(value="/permission/getPermissionById/{id}",method= RequestMethod.POST)
    AjaxResult getPermissionById(@PathVariable("id") Long id);
}
